
import Vue from 'vue'
import Element from 'element-ui'
import '/public/css/Normalize.css'
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import './assets/css/elementReset.less'
import { registerMicroApps, start } from 'qiankun'
Vue.config.productionTip = false
Vue.use(Element)
let vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

global.vm = vm
// 在主应用中注册子应用
registerMicroApps([
  {
    name: "child1",
    entry: "//localhost:8081",	// 重点8：对应重点6
    container: '#child1',			// 重点9：对应重点2
    activeRule: '/plan',			// 重点10：对应重点4
    sandbox: {
      strictStyleIsolation: true
    },
    props:{
      microStore:store
    }
  }
]);
// 启动
start();
